package com.xposed.openfire.smack.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class ChatRecord {
    @Id(autoincrement = true)
    private Long id;
    @Unique
    @Property(nameInDb = "name")
    private String name;
    @Property(nameInDb = "from")
    private String from;
    @Property(nameInDb = "to")
    private String to;
    @Property(nameInDb = "last_msg_type")
    private String lastMsgType;
    @Property(nameInDb = "last_msg_text")
    private String lastMsgText;
    @Property(nameInDb = "last_msg_time")
    private String lastMsgTime;
    @Generated(hash = 1082044748)
    public ChatRecord(Long id, String name, String from, String to,
            String lastMsgType, String lastMsgText, String lastMsgTime) {
        this.id = id;
        this.name = name;
        this.from = from;
        this.to = to;
        this.lastMsgType = lastMsgType;
        this.lastMsgText = lastMsgText;
        this.lastMsgTime = lastMsgTime;
    }
    @Generated(hash = 1442974643)
    public ChatRecord() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getFrom() {
        return this.from;
    }
    public void setFrom(String from) {
        this.from = from;
    }
    public String getTo() {
        return this.to;
    }
    public void setTo(String to) {
        this.to = to;
    }
    public String getLastMsgType() {
        return this.lastMsgType;
    }
    public void setLastMsgType(String lastMsgType) {
        this.lastMsgType = lastMsgType;
    }
    public String getLastMsgText() {
        return this.lastMsgText;
    }
    public void setLastMsgText(String lastMsgText) {
        this.lastMsgText = lastMsgText;
    }
    public String getLastMsgTime() {
        return this.lastMsgTime;
    }
    public void setLastMsgTime(String lastMsgTime) {
        this.lastMsgTime = lastMsgTime;
    }
}
